package server;

import java.io.Serializable;

/**
 * An global log event entry.
 */
public class GlobalLog  implements Serializable {
	private static final long serialVersionUID = 4904366877677269597L;

	/**
	 * Create a new global event entry.
	 * @param time The timestamp of the event.
	 * @param event The string information of the event.
	 */
	public GlobalLog(long time, String event) {
		this.time = time;
		this.event = event;
	}

    public boolean equals(Object other) {
        if (!(other instanceof GlobalLog)) {
            return false;
        }

        GlobalLog o = (GlobalLog)other;
        return (
            (((event == null) && (o.event == null)) || 
                (event.equals(event))) &&
			(time == o.time)
            );
    }


	public long time;
	public String event;
}
